<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./node_modules/axios/dist/axios.min.js"></script>
</head>
<body>
    <script>
    // 未使用解构赋值
        axios.get('1-问题.js').then((value)=>{
            console.log(value);
        })

    // 解构赋值
    axios.get("./1-问题.js").then(({data})=>{
        console.log(data);
    })

    //拦截器
    axios.interceptors.response.use(res=>res.data);
    (async ()=>{
        const data = await axios.get('1-问题.js');
        console.log(data)
    })()
    </script>
</body>
</html>